package PrecticeAm;

import java.util.Arrays;
import java.util.Scanner;

public class Test {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
       int num = sc.nextInt();
       isAddcount isAddcount = new isAddcount();
       System.out.println(isAddcount.isAdd(num));

       int[] arr = {51,-44,562,-189,556,5,3387,84651,56,-54,498,4,561};
       isAddcount.Change(arr);
       System.out.println(Arrays.toString(arr));

       int[] arr1 = {12,36,95,155,666,777,1245,3364};
       int key = sc.nextInt();
       int index = isAddcount.binarySearch(arr1,key);
       System.out.println(key + "在数组中的下标是：" + index);


    }
}
